package com.xiaoyy.sso.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 第三方登录
 * </p>
 *
 * @author chenzh
 * @since 2020-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_USER_OTHER")
@ApiModel(value="SysUserOther对象", description="第三方登录")
@KeySequence(value = "SQ_SYS_ID", clazz = Long.class)
public class SysUserOther extends Model<SysUserOther> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键")
    @TableId(value = "SYS_ID", type = IdType.INPUT)
    private Long sysId;
    @ApiModelProperty(value = "用户id")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "登入类型")
    @TableField("LOGIN_TYPE")
    private String loginType;

    @ApiModelProperty(value = "第三方id")
    @TableField("OPEN_ID")
    private String openId;

    @ApiModelProperty(value = "是否授权 1 是 0 否")
    @TableField("GRANT_FLAG")
    private String grantFlag;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
